package cn.canxin.core.dao.teacher;

import cn.canxin.core.bean.Teacher.TeacherSubjectInfo;
import cn.canxin.core.dao.SimpleInsertLangDriver;
import cn.canxin.core.dao.SimpleSelectLangDriver;
import cn.canxin.core.dao.SimpleUpdateLangDriver;
import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author chencan
 *
 */
public interface TeacherSubjcetInfoDao {

	@Lang(SimpleUpdateLangDriver.class)
	@Update("UPDATE canxin_teacher_subject_info (#{teacherSubjectInfo}) WHERE id = #{id}")
	public void updateTeacherSubjectInfo(TeacherSubjectInfo teacherSubjectInfo);

	@Select("SELECT * FROM canxin_teacher_subject_info (#{teacherSubjectInfo})")
	@Lang(SimpleSelectLangDriver.class)
	public List<TeacherSubjectInfo> getTeacherSubjectInfo(TeacherSubjectInfo teacherSubjectInfo);

	@Select("insert into canxin_teacher_subject_info  (#{teacherSubjectInfo})")
	@Lang(SimpleInsertLangDriver.class)
	public void addTeacherSubjectInfo(TeacherSubjectInfo teacherSubjectInfo);
}
